var xmlHttpRequest;
function createXMLHttpRequest()
{
  if (window.XMLHttpRequest) //非IE浏览器
  {
    xmlHttpRequest = new XMLHttpRequest();
  }
  else if (window.ActiveObject)//IE6以上版本的IE浏览器
  {
    xmlHttpRequest = new ActiveObject("Msxml2.XMLHTTP");
  }
  else //IE6及以下版本IE浏览器
  {
    xmlHttpRequest = new ActiveObject("Microsoft.XMLHTTP");
  }
}

function sendRequest(url) {
  createXMLHttpRequest();
  xmlHttpRequest.open("POST", url, true);
  xmlHttpRequest.onreadystatechange = processResponse;
   xmlHttpRequest.send(null);
}
function jump2shiporder(){
  sendRequest("newOrder?newOrderFormSubmitted="+true);
}
function jump2confirmorder(){
  sendRequest("newOrder?shipAddressSubmitted="+true);
}
function jump2vieworder(){
  sendRequest("newOrder?confirmed="+true);
}
function processResponse(){
  if (xmlHttpRequest.readyState == 4) {
    if (xmlHttpRequest.status == 200) {
      var resp = xmlHttpRequest.responseText;
      console.log(resp);
      document.getElementById("orderContainer").innerHTML = xmlHttpRequest.responseText;
    }
  }
}